home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
lrpad
/
pad.bas
< prev
next >
Wrap
BASIC Source File
|
1995-05-08
|
396b
|
19 lines
Global Result As Variant
Function LPAD (A As Variant, B As Variant, C As Integer) As Variant
Dim PadCount As Integer
For PadCount = Len(A) + 1 To C
A = B + A
Next PadCount
Result = A
End Function
Function RPAD (A As Variant, B As Variant, C As Integer) As Variant
Dim PadCount As Integer
For PadCount = Len(A) + 1 To C
A = A + B
Next PadCount
Result = A
End Function